//
//  pkGraphView.h
/*
 Copyright 2009 Jack Whitsitt
 Conact: sintixerr@gmail.com | http://sintixerr.wordpress.com
 
 This file is part of "pkviz".
 
 "pkviz" is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation, either version 3 of the License, or
 (at your option) any later version.
 
 "pkviz" is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.
 
 You should have received a copy of the GNU General Public License
 along with "pkviz".  If not, see <http://www.gnu.org/licenses/>.
 */ 

#import <Cocoa/Cocoa.h>
#import <QuartzCore/QuartzCore.h>
#import "layerDelegate.h"


int frun;

@interface pkGraphView : NSView {

//	int frun; // first time running?
	NSArray *setToPlot;
	NSArray *metaSetToPlot;
	NSMutableArray *layers;
	NSMutableArray *layerWindow;
	NSNumber *headersExpanded;
	
	int iter_count;
	int kp;
	int last_kp;
	int windowSize;
	layerDelegate *layd;
	signed int onePacketMode;
	
	IBOutlet NSTextField *winSizeField;
}
@property (retain, nonatomic) NSTextField *winSizeField;
@property (retain, nonatomic) NSNumber *headersExpanded;

- (void)drawRect:(NSRect)rect;
- (void) setupLayers;
- (void) removeLayers;
- (void) setWindowSize:(int)ws;
- (void) moveOneFrameForward:(NSArray *)packet withKp:(int)pkiter;
- (void) moveOneFrameBack:(NSArray *)packet withKp:(int)pkiter;
- (void) removeThisPacket:(int)pknum;

- (IBAction)manualWindowSize:(id)sender;

//- (void)setPixelData:(NSMutableArray *)pds;

@end